<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14318
  Date: 2021/12/3
  Time: 22:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>

    <title>学生列表</title>

</head>

<body>

<form action="${pageContext.request.contextPath}/add" method="post">



    <!--

    private int id;//关键字

    private String code;//学号

    private String username;//姓名

    private int age;//年龄

    private String gender;//性别

    -->

    学号：<input type="text" name="code"><br>

    姓名：<input type="text" name="username"><br>

    年龄：<input type="text" name="age"><br>

    性别：

    <select name="gender">

        <option>male</option>

        <option>female</option>

    </select><br>

    密码：<input type="password" name="password" value="123456"> <br>

    <input type="submit" value="添加">

</form>

</body>

</html>